package com.example.common.entity;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@ApiModel(value = "PageParam", description = "分页排序条件参数")
@Data
public class PageParam<Model> {

    private Integer id;

    @ApiModelProperty(value = "条件参数", name = "model")
    private Model model;

    @ApiModelProperty(value = "排序参数 例如时间降序 orderParams:['createTime desc','age asc']", name = "orderParams")
    private String[] orderParams;

    @ApiModelProperty(value = "页码", name = "pageNum", example = "1")
    private int pageNo;

    @ApiModelProperty(value = "每页记录条数", name = "pageSize", example = "10")
    private int pageSize;

    @ApiModelProperty(value = "高级检索关键词（自动模糊匹配所有字符串类型字段）", name = "superSearchKeyWord", example = "")
    private String superSearchKeyWord;

    @ApiModelProperty(value = "最少期限", name = "startPeriod", example = "")
    private int startPeriod;

    @ApiModelProperty(value = "最多期限", name = "endPeriod", example = "")
    private int endPeriod;
}

